home *** CD-ROM | disk | FTP | other *** search
/ Champak 43 / Vol 43.iso / games / superdog.swf / scripts / DefineSprite_1734 / frame_2 / DoAction.as
Encoding:
Text File  |  2007-06-25  |  2.0 KB  |  73 lines

  1. stop();
  2. halfland = false;
  3. onEnterFrame = function()
  4. {
  5.    if(boss.hp < 13)
  6.    {
  7.       flywar = false;
  8.       if(halfland == true)
  9.       {
  10.          this.play();
  11.       }
  12.    }
  13.    if(boss.hp == 20 and loaded == false)
  14.    {
  15.       this.attachMovie("bigyellow","bigyellow" + i,i++);
  16.       this["bigyellow" + i]._x = 290;
  17.       this["bigyellow" + i]._y = 190;
  18.       loaded = true;
  19.    }
  20.    else if(boss.hp == 16 and loaded == true)
  21.    {
  22.       flywar = true;
  23.       play();
  24.       this["bigyellow" + i].removeMovieClip();
  25.       this.attachMovie("bigblue","bigblue" + i,i++);
  26.       this["bigblue" + i]._x = 290;
  27.       this["bigblue" + i]._y = 190;
  28.       this.attachMovie("moredog","moredog" + i,i++);
  29.       this["moredog" + i]._x = 470;
  30.       this["moredog" + i]._y = 190;
  31.       loaded = false;
  32.    }
  33.    else if(boss.hp == 12 and loaded == false)
  34.    {
  35.       this["bigblue" + i].removeMovieClip();
  36.       flywar = false;
  37.       boss.shakeNow = false;
  38.       boss.stoped = false;
  39.       boss.behit = false;
  40.       boss.gotoAndPlay(2);
  41.       if(halfland == true)
  42.       {
  43.          play();
  44.       }
  45.       boss.gotoAndStop("τ½Ö");
  46.       this.attachMovie("bigred","bigred" + i,i++);
  47.       this["bigred" + i]._x = 290;
  48.       this["bigred" + i]._y = 190;
  49.       loaded = true;
  50.    }
  51.    else if(boss.hp == 8 and loaded == true)
  52.    {
  53.       boss.ofen_zhao = true;
  54.       this.attachMovie("moredog","moredog" + i,i++);
  55.       this["moredog" + i]._x = 470;
  56.       this["moredog" + i]._y = 190;
  57.       this["bigred" + i].removeMovieClip();
  58.       this.attachMovie("bigpurple","bigpurple" + i,i++);
  59.       this["bigpurple" + i]._x = 290;
  60.       this["bigpurple" + i]._y = 190;
  61.       loaded = false;
  62.    }
  63.    else if(boss.hp == 4 and loaded == false)
  64.    {
  65.       boss.ofen_zhao = false;
  66.       this["bigpurple" + i].removeMovieClip();
  67.       this.attachMovie("biggreen","biggreen" + i,i++);
  68.       this["biggreen" + i]._x = 290;
  69.       this["biggreen" + i]._y = 190;
  70.       loaded = true;
  71.    }
  72. };
  73.